import request from 'utils/request'

//获取会员评论分页列表
export function getPageList(data, id) {
  return request({
    url: '/MemberComment/GetPageList?storeId=' + (id ? id : -1),
    method: 'post',
    data: data
  })
}

// 添加会员评论记录
export function add(model, id) {
  return request({
    url: '/MemberComment/Add',
    method: 'post',
    data: {
      StoreId: id,
      Star: model.rateValue.value,
      Content: model.comment.value,
      Images: model.images.value.join(',')
    }
  })
}
